import request from "@/utils/request";
// node 添加文章接口
export function addFile(data) {
  return request({
    url: "/api/addFile",
    method: "post",
    data
  })
}
export function queryFile(data){
  return request({
    url: "/api/queryFile",
    method: "post",
    data
  })
}
/*node 登录*/
export function requestLogin(data) {
  return request({
    url: "/api/login",
    method: "post",
    data
  });
}
/*mork 后台数据*/
export function mock(data) {
  return request({
    url: "/api/upload",
    method: "post",
    data
  });
}
/*获取用户*/
export function queryUsers(data) {
  return request({
    url: "/api/queryUsers",
    method: "post",
    data
  });
}
/*删除用户*/
export function deleteUser(data) {
  return request({
    url: "/api/deleteUser",
    method: "post",
    data
  });
}
/*批量删除用户*/
export function deleteManyUser(data) {
  return request({
    url: "/api/deleteManyUser",
    method: "post",
    data
  });
}
/*新增用户*/
export function addUser(data) {
  return request({
    url: "/api/addUser",
    method: "post",
    data
  });
}
/*编辑用户*/
export function updateUsers(data) {
  return request({
    url: "/api/updateUsers",
    method: "post",
    data
  });
}


// export function deleteUser(data) {
//   return request({
//     url: "/api/deleteUser",
//     method: "get",
//     params:data
//   });
// }